package com.hr.service;

import com.hr.entity.Topic;

import java.util.List;

/*
    Created with IntelliJ IDEA.
    @author: wang sir
    Date: 2021/7/16
    Time: 14:36
    To change this template use File | Settings | File Templates.
    Description: 
 */
public interface TopicService {

    /*
    * 查询所有主题
    * @return
    *
    * */

    public List<Topic> quarryAllTopics();

    /*
    * 添加主题
    * */
    public Topic addTopic(Topic topic);

    /*
    * 根据主题id查询主题
    * */
    Topic queryTopicByTid(Long tid);

    /*
    *修改主题
    * */
    Topic updateTopic(Topic topic);

    /*
    * 查询是否存在某主题
    * */
    Topic queryTopicByTname(String tname);

    /*
    * 删除主题
    * */
    void deleteTopic(Long tid);
}